package com.example.productmanagerspringboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.productmanagerspringboot.data.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
//    @Select("select * from t_order where user_id=#{userId}")
//    List<Order> selectById(int userId);

    @Select("select * from t_order where order_id=#{orderId}")
    Order selectByOrderId(int orderId);
}
